<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>我的</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" href="http://at.alicdn.com/t/font_604068_x81eth8efnoecdi.css">
    <link rel="stylesheet" href="https://cdn.bootcss.com/weui/1.1.2/style/weui.min.css">
    <link rel="stylesheet" href="https://cdn.bootcss.com/jquery-weui/1.2.0/css/jquery-weui.min.css">
    <link rel="stylesheet" href="https://jqweui.cn/dist/demos/css/demos.css ">
    <script src="https://cdn.bootcss.com/jquery/1.11.0/jquery.min.js"></script>
    <link href="/static/css/css.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="/static/mui/css/mui.css">
    <script src="/static/mui/js/mui.js"></script>
    <script src="/static/js/vue.min.js"></script>
    <script src="/static/js/vue-resource.js"></script>


    <!--调用微信扫一扫接口-->
    <link rel="stylesheet" href="http://demo.open.weixin.qq.com/jssdk/css/style.css?ts=1420774989">
    <!-- head 中 -->
    <!--<link rel="stylesheet" href="https://cdn.bootcss.com/weui/1.1.2/style/weui.min.css">-->
    <!--<link rel="stylesheet" href="https://cdn.bootcss.com/jquery-weui/1.2.0/css/jquery-weui.min.css">-->

    <!-- body 最后 -->
    <!--<script src="https://cdn.bootcss.com/jquery/1.11.0/jquery.min.js"></script>-->
    <script src="https://cdn.bootcss.com/jquery-weui/1.2.0/js/jquery-weui.min.js"></script>

    <style>
        a {
            color: black
        }

        a.weui-media-box:active {
            background-color: #ececec;
            opacity: 0.01;
        }

        div .weui-cell__ft:after {
            content: " ";
            display: inline-block;
            height: 6px;
            width: 6px;
            border-width: 2px 2px 0 0;
            border-color: #c8c8cd;
            border-style: solid;
            -webkit-transform: matrix(.71, .71, -.71, .71, 0, 0);
            transform: matrix(.71, .71, -.71, .71, 0, 0);
            position: relative;
            top: -2px;
            position: absolute;
            top: 50%;
            margin-top: -4px;
            right: 15px;
        }

        .wenzi {
            font-size: 14px;
            margin-top: 0;
            margin-bottom: 10px;
            color: #8f8f94;
        }

        .mui-bar-tab .mui-tab-item.mui-active {
            color: #fe8200;
        }

        .mui-grid-view.mui-grid-9 .mui-table-view-cell {
            margin: 0;
            padding: 0;
            vertical-align: top;
            border-right: 1px solid #eee;
            border-bottom: 1px solid #eee;
        }
        .mui-grid-view.mui-grid-9 .mui-table-view-cell{
            border-right:0px solid #eee;
            border-bottom: 0px solid #eee;
        }
        .mui-table-view.mui-grid-view .mui-table-view-cell .mui-media-body {
            font-size: 15px;
            line-height: 15px;
            display: block;
            width: 100%;
            height: 15px;
            margin-top: 0px;
            text-overflow: ellipsis;
            color: #333;
        }

        .tubiao{
            width: 35px;height: 35px;opacity: 0.7
        }

    </style>
</head>
<body ontouchstart="">


<nav class="mui-bar mui-bar-tab" style="background: white;border: none;-webkit-box-shadow: 0 0 0px rgba(0, 0, 0, .85);
            box-shadow: 0 0 0px rgba(0, 0, 0, .85);">
    <a class="mui-tab-item " id="na " href="{:url('/home/shouye/shouye')} ">
        <span class="mui-icon icon icon-home"></span>
        <span class="mui-tab-label ">首页</span>
    </a>
    <a class="mui-tab-item" id="shop" href="{:url('/home/goods/goods')} ">
        <span class="mui-icon   icon icon-goods"></span>
        <span class="mui-tab-label">商品</span>
    </a>

    <a class="mui-tab-item  mui-active" href="#mine">
        <span class="mui-icon   icon icon-my"></span>
        <span class="mui-tab-label">我的</span>
    </a>

</nav>

<div id="mine" class="mui-control-content mui-active">
    <div class="page__bd" style="" class="wxapi_container" id="app">
        <div class="weui-panel weui-panel_access"
             style="background: url('/static/images/bj1.jpg') no-repeat;   background-size:100%;height: 180px">
            <div> <a href="{:url('/home/logintest/shezhi')}"><span class="icon icon-shezhi"
                       style="float: right;margin-right: 5%;color: white;margin-top: 10px"></span></a></div>
            <!--用户已登录样式-->
            <div v-if=' uid!=null  && us.id!= null   ' class="weui-panel__bd" style="margin-top: 85px;margin-left: 3%">
                <a href="{:url('/home/my/grzl')}" class="weui-media-box weui-media-box_appmsg">
                    <div class="weui-media-box__hd">
                        <img v-if='us.id!= null' class="weui-media-box__thumb" style="border-radius: 50px;"
                             :src="us.avatar"
                             alt="">
                    </div>
                    <!--主要针对有真是姓名的员工-->
                    <div v-if='us.username != 0' class="weui-media-box__bd">

                        <h4 class="weui-media-box__title" style="color: white;">{{us.username}}</h4>
                        <p class="weui-media-box__desc" style="color: white;">手机号:{{us.phone}}</p>
                    </div>
                    <!--主要针对未填写姓名的普通用户-->
                    <div v-if='us.username == 0 ' class="weui-media-box__bd">
                        <h4 class="weui-media-box__title" style="color: white;">你好！{{us.phone}}</h4>
                    </div>
                </a>
            </div>
            <!--用户未登录样式-->
            <div v-else class="weui-panel__bd" style="margin-top: 85px;margin-left: 3%">
                <a href="{:url('/home/auth/login')}" class="weui-media-box weui-media-box_appmsg">
                    <div class="weui-media-box__hd">
                        <img class="weui-media-box__thumb" style="border-radius: 50px;"
                             src="/static/images/nologingif.gif"
                             alt="">
                    </div>
                    <div class="weui-media-box__bd">
                        <h4 class="weui-media-box__title" style="color: white;">未登录</h4>
                    </div>
                </a>

            </div>

        </div>


        <div v-if="us.is_worker == 1">
            <div  >
                <ul class="mui-table-view mui-grid-view mui-grid-9"  style="background: white;" >
                    <li class="mui-table-view-cell mui-media mui-col-xs-4 "><a href="{:url('/home/Worker/mywallet')} ">
                        <span  ><img  class="tubiao" src="/static/images/icon/icon1.png"></span>
                        <div class="mui-media-body">钱包</div></a></li>
                    <li class="mui-table-view-cell mui-media mui-col-xs-4 "><a href="{:url('/home/Worker/myjb')}">
                        <span  ><img    class="tubiao" src="/static/images/icon/icon2.png"></span>
                        <div class="mui-media-body">竞标</div></a></li>
                    <li class="mui-table-view-cell mui-media mui-col-xs-4 "><a href="{:url('/home/Worker/mywork')}">
                        <span  ><img   class="tubiao" src="/static/images/icon/icon5.png"></span>
                        <div class="mui-media-body">工作</div></a></li>
                </ul>
            </div>


            <!--<div class="weui-cells__title">我是工人</div>-->
            <!--<div class="weui-panel" style="margin-top: 10px">-->
                <!--<div class="weui-panel__bd">-->
                    <!--<div class="weui-media-box weui-media-box_small-appmsg">-->
                        <!--<div class="weui-cells">-->
                            <!--<a class="weui-cell weui-cell_access" href="{:url('/home/Worker/mywallet')} ">-->
                                <!--<div class="weui-cell__bd weui-cell_primary">-->
                                    <!--<span class="icon icon-sponsor" style="margin-right: 10px"></span><span-->
                                        <!--class="wenzi">我的钱包</span>-->

                                <!--</div>-->
                                <!--<span class="weui-cell__ft"></span>-->
                            <!--</a>-->
                            <!--<a class="weui-cell weui-cell_access" href="{:url('/home/Worker/mywork')}">-->
                                <!--<div class="weui-cell__bd weui-cell_primary">-->
                                    <!--<span class="icon icon-fangxingxuanzhong" style="margin-right: 10px"></span><span-->
                                        <!--class="wenzi">我的工作</span>-->

                                <!--</div>-->
                                <!--<span class="weui-cell__ft"></span>-->
                            <!--</a>-->

                        <!--</div>-->


                    <!--</div>-->
                <!--</div>-->
            <!--</div>-->
        </div>

        <div v-if="us.is_biz == 1">
            <div class="weui-cells__title">我是商家</div>
            <div class="weui-panel" style="margin-top: 10px">
                <div class="weui-panel__bd">
                    <div class="weui-media-box weui-media-box_small-appmsg">
                        <div class="weui-cells">
                            <a class="weui-cell weui-cell_access" href="{:url('/home/Seller/myorder')}">
                                <div class="weui-cell__bd weui-cell_primary">
                                    <span class="icon icon-dingdan" style="margin-right: 10px"></span><span
                                        class="wenzi">我的订单</span>

                                </div>
                                <span class="weui-cell__ft"></span>
                            </a>
                            <a class="weui-cell weui-cell_access" href="javascript:weixin_qr()">
                                <div class="weui-cell__bd weui-cell_primary">
                                    <span class="icon icon-scan" style="margin-right: 10px"></span><span
                                        class="wenzi">扫描优惠券</span>

                                </div>
                                <span class="weui-cell__ft"></span>
                            </a>
         <!--新增加内容-->
                            <a class="weui-cell weui-cell_access" href="{:url('/home/goods/management')}">
                                <div class="weui-cell__bd weui-cell_primary">
                                    <span class="icon icon-shoplight" style="margin-right: 10px"></span><span
                                        class="wenzi">商品管理</span>

                                </div>
                                <span class="weui-cell__ft"></span>
                            </a>

                            <a class="weui-cell weui-cell_access" href="#">
                                <div class="weui-cell__bd weui-cell_primary">
                                    <span class="icon icon-news_hot_light" style="margin-right: 10px"></span><span
                                        class="wenzi">优惠订单</span>

                                </div>
                                <span class="weui-cell__ft"></span>
                            </a>
                            <!--<a class="weui-cell weui-cell_access" href="{:url('/home/Seller/mycoupon')}">-->
                            <!--<div class="weui-cell__bd weui-cell_primary">-->
                            <!--<span class="icon icon-goods" style="margin-right: 10px"></span><span-->
                            <!--class="wenzi">优惠券商品</span>-->

                            <!--</div>-->
                            <!--<span class="weui-cell__ft"></span>-->
                            <!--</a>-->

                        </div>


                    </div>
                </div>
            </div>
        </div>
        <div v-if="us.is_qc == 1">
            <div class="weui-cells__title">我是质检</div>
            <div class="weui-panel" style="margin-top: 10px">
                <div class="weui-panel__bd">
                    <div class="weui-media-box weui-media-box_small-appmsg">
                        <div class="weui-cells">
                            <a class="weui-cell weui-cell_access" href="{:url('/home/My/myjgprogram')}">
                                <div class="weui-cell__bd weui-cell_primary">
                                    <span class="icon icon-liebiaoxingshi" style="margin-right: 10px"></span>
                                    <span class="wenzi">我的项目</span>

                                </div>
                                <span class="weui-cell__ft"></span>
                            </a>
                        </div>


                    </div>
                </div>
            </div>

            <div class="weui-cells__title">我是客户经理</div>
            <div class="weui-panel" style="margin-top: 10px">
                <div class="weui-panel__bd">
                    <div class="weui-media-box weui-media-box_small-appmsg">
                        <div class="weui-cells">
                            <a class="weui-cell weui-cell_access" href="{:url('/home/My/mykhjlprogram')}">
                                <div class="weui-cell__bd weui-cell_primary">
                                    <span class="icon icon-leimu" style="margin-right: 10px"></span>
                                    <span class="wenzi">我的项目</span>

                                </div>
                                <span class="weui-cell__ft"></span>
                            </a>
                        </div>


                    </div>
                </div>
            </div>
        </div>
        <div v-if="us.is_pm == 1">
            <div class="weui-cells__title">我是项目经理</div>
            <div class="weui-panel" style="margin-top: 10px">
                <div class="weui-panel__bd">
                    <div class="weui-media-box weui-media-box_small-appmsg">
                        <div class="weui-cells">
                            <a class="weui-cell weui-cell_access" href="{:url('/home/My/myprogram')}">
                                <div class="weui-cell__bd weui-cell_primary">
                                    <span class="icon icon-danpin" style="margin-right: 10px"></span>
                                    <span class="wenzi">所有项目</span>

                                </div>
                                <span class="weui-cell__ft"></span>
                            </a>
                        </div>


                    </div>
                </div>
            </div>
        </div>
        <div v-if="us.is_pm == 1    || us.is_qc == 1">
            <div class="weui-panel" style="margin-top: 10px">
                <div class="weui-panel__bd">
                    <div class="weui-media-box weui-media-box_small-appmsg">
                        <div class="weui-cells">
                            <a class="weui-cell weui-cell_access" href="{:url('/home/Worker/index')}">
                                <div class="weui-cell__bd weui-cell_primary">
                                    <span class="icon icon-gongren" style="margin-right: 10px"></span>
                                    <span class="wenzi">产业工人</span>

                                </div>
                                <span class="weui-cell__ft"></span>
                            </a>
                        </div>


                    </div>
                </div>
            </div>
        </div>
        <!--预约和材料清单-->
        <div class="weui-panel" style="margin-top: 10px">
            <div class="weui-panel__bd">
                <div class="weui-media-box weui-media-box_small-appmsg">
                    <div class="weui-cells">
                        <a class="weui-cell weui-cell_access" href="{:url('/home/logintest/myyuyue')}">
                            <div class="weui-cell__bd weui-cell_primary">
                                <span class="icon  icon-shizhong" style="margin-right: 10px"></span><span class="wenzi">我的预约</span>

                            </div>
                            <span class="weui-cell__ft"></span>
                        </a>
                        <a class="weui-cell weui-cell_access" href="{:url('/home/logintest/mylist')}">
                            <div class="weui-cell__bd weui-cell_primary">
                                <span class="icon icon-gonglve" style="margin-right: 10px"></span><span class="wenzi">材料清单</span>

                            </div>
                            <span class="weui-cell__ft"></span>
                        </a>

                    </div>


                </div>
            </div>
        </div>

        <!--收藏和装修费用计算-->
        <div class="weui-panel" style="margin-top: 10px">
            <div class="weui-panel__bd">
                <div class="weui-media-box weui-media-box_small-appmsg">
                    <div class="weui-cells">
                        <a class="weui-cell weui-cell_access" href="{:url('/home/logintest/my_decoration')}">
                            <div class="weui-cell__bd weui-cell_primary">
                                <span class="icon   icon-biaoxing" style="margin-right: 10px"></span>
                                <span class="wenzi">我的装修</span>

                            </div>
                            <span class="weui-cell__ft"></span>
                        </a>
                        <a class="weui-cell weui-cell_access" href="{:url('/home/My/mycostcount')}">
                            <div class="weui-cell__bd weui-cell_primary">
                                <span class="icon icon-jisuan" style="margin-right: 10px"></span>
                                <span class="wenzi">装修费用计算</span>

                            </div>
                            <span class="weui-cell__ft"></span>
                        </a>

                    </div>


                </div>
            </div>
        </div>

        <!--售后咨询和投诉-->
        <div class="weui-panel" style="margin-top: 10px;margin-bottom: 60px">
            <div class="weui-panel__bd">
                <div class="weui-media-box weui-media-box_small-appmsg">
                    <div class="weui-cells">
                        <a class="weui-cell weui-cell_access" href="tel:15139399605">
                            <div class="weui-cell__bd weui-cell_primary">
                                <span class="icon  icon-wangwang" style="margin-right: 10px"></span>
                                <span class="wenzi">销售咨询、售后保修</span>

                            </div>
                            <span class="weui-cell__ft"></span>
                        </a>
                        <a class="weui-cell weui-cell_access" href="tel:15139399605">
                            <div class="weui-cell__bd weui-cell_primary">
                                <span class="icon icon-tishi" style="margin-right: 10px"></span>
                                <span class="wenzi">我要投诉</span>

                            </div>
                            <span class="weui-cell__ft"></span>
                        </a>

                    </div>


                </div>
            </div>
        </div>

    </div>
</div>
</body>

<script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script>

    //    $("#na").click(function () {
    //
    //        window.location.href="{:url('/home/shouye/shouye')} ";
    //
    //    });

    mui('body').on('tap', 'a', function () {
        document.location.href = this.href;
    });


    var vm = new Vue({
        el: "#app",
        data: {
            us: [],
            uid: ''

        },


    });
    $(function () {
        var re = '{$us}';

        console.log(re);
        var s = eval('(' + re + ')');
        vm.us = s;
        vm.uid = '{$uid}';

    })


    wx.config({
        debug: false,
        appId: '{$jsconfig.appId}',
        timestamp: '{$jsconfig.timestamp}',
        nonceStr: '{$jsconfig.noncestr}',
        signature: '{$jsconfig.signature}',
        jsApiList: [
            'checkJsApi',
            'onMenuShareTimeline',
            'onMenuShareAppMessage',
            'onMenuShareQQ',
            'onMenuShareWeibo',
            'hideMenuItems',
            'showMenuItems',
            'hideAllNonBaseMenuItem',
            'showAllNonBaseMenuItem',
            'translateVoice',
            'startRecord',
            'stopRecord',
            'onRecordEnd',
            'playVoice',
            'pauseVoice',
            'stopVoice',
            'uploadVoice',
            'downloadVoice',
            'chooseImage',
            'previewImage',
            'uploadImage',
            'downloadImage',
            'getNetworkType',
            'openLocation',
            'getLocation',
            'hideOptionMenu',
            'showOptionMenu',
            'closeWindow',
            'scanQRCode',
            'chooseWXPay',
            'openProductSpecificView',
            'addCard',
            'chooseCard',
            'openCard'
        ]
    });
    wx.isInit = false;

    wx.ready(function () {



        // 9 微信原生接口
        // 9.1.1 扫描二维码并返回结果


//          $('#weixin_qr').click(function () {
//              wx.scanQRCode({
//                  desc: 'scanQRCode desc'
//              });
//          });


        // 9.1.2 扫描二维码并返回结果
//        document.querySelector('#scanQRCode1').onclick = function () {
//            wx.scanQRCode({
//                needResult: 1,
//                desc: 'scanQRCode desc',
//                success: function (res) {
//                    alert(JSON.stringify(res));
//                }
//            });
//        };

    });

    function weixin_qr() {
        wx.scanQRCode({
            desc: 'scanQRCode desc'
        });
    }

    wx.error(function (res) {
        alert(res.errMsg);
    });

</script>


</html>









































